package cn.iocoder.yudao.module.api.trade.aftersale.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 售后操作类型的枚举
 *
 * @author 陈賝
 * @since 2023/6/13 13:53
 */
@RequiredArgsConstructor
@Getter
public enum AfterSaleOperateTypeEnum {

    BUYER_CREATE(10, "买家申请退款"),
    SELLER_AGREE_APPLY(11, "卖家同意退款"),
    SELLER_DISAGREE_APPLY(12, "卖家拒绝退款"),
    BUYER_DELIVERY(20, "买家填写退货物流信息，快递公司：{deliveryName}，快递单号：{logisticsNo}"),
    SELLER_AGREE_RECEIVE(21, "卖家收到退款货物"),
    SELLER_DISAGREE_RECEIVE(22, "卖家拒收退款货物，原因：{reason}"),
    PLATFORM_REFUND(30, "平台确认退款"),
    SYSTEM_REFUND_SUCCESS(31, "退款成功"),
    SYSTEM_REFUND_FAIL(32, "退款失败"),
    BUYER_CANCEL(40, "买家取消退款"),
    ;

    /**
     * 操作类型
     */
    @EnumValue
    private final Integer type;
    /**
     * 操作描述
     */
    private final String content;

}
